package moder

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(100)"`
	Password string `gorm:"type:varchar(100)"`
}

type Role struct {
	gorm.Model
	UserRole string `gorm:"type:varchar(100)"`
}

type UserRole struct {
	gorm.Model
	UserId int `gorm:"type:int"`
	RoleId int `gorm:"type:int"`
}

type Perm struct {
	gorm.Model
	RolePerm string `gorm:"type:varchar(100)"`
}

type RolePerm struct {
	gorm.Model
	RoleId int `gorm:"type:int"`
	PermId int `gorm:"type:int"`
}
